//2009/07/26 14:00:24
#include <iostream>
#include <string>
#include <vector>

using namespace std;

class RectangularGrid
{
public:
    long long countRectangles(int width, int height)
    {
        long long score = 0;
        for (int i=0; i<height; i++)
        {
			for(int j=0; j<width; j++)
			{
				if(i == j) continue;
				score += (height - i) * (width - j);
			}
        }
		return score;
    }
};
